package com.finger.crowd.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class CrowdWebMvcConfig implements WebMvcConfigurer {
    @Override
    public void addViewControllers(ViewControllerRegistry registry) {

        registry.addViewController("/project/agree/page").setViewName("project-agree");

        registry.addViewController("/project/lunch/crowd").setViewName("project-launch");

        registry.addViewController("/return/info/page").setViewName("project-return");

        registry.addViewController("/create/confirm/page").setViewName("project-confirm");

        registry.addViewController("/save/project/success").setViewName("project-success");

    }
}
